// 路由配置
import {createRouter,createMemoryHistory} from 'vue-router';
import Login from '@/views/Login.vue';
import Home from '@/views/Home.vue';
import LeftSidebar from '@/views/LeftSidebar.vue';
var routes=[
	{
		name:'login',
		component:Login,
		path:"/"
	},
	//配置左侧导航栏
	{
		name:'home',
		component:Home,
		path:'/lhh/home/',
		children:[
			{   
				path:'/lhh/left',
				name:'用户',
				icon:'Avatar',
				children:[
					{
						path:"/lhh/one",
						name:'用户列表'
					},
					{
						path:"/lhh/two",
						name:'用户配置'
					}
				]
			},
			{   
				path:'/lhh/left',
				name:'日志管理',
				icon:'CollectionTag' 
			},
			{   
				path:'/lhh/left',
				name:'运维管理',
				icon:'ChatLineSquare'
			},
			{   
				path:'/lhh/left',
				name:'系统管理',
				icon:'Setting'
			}
		],
	}
];
const router = createRouter({
  history: createMemoryHistory(),
  //命名路由的使用
  routes,
})

export default router;